import request from "../_libs/request";




export default {
    UserList() {
        return request.get('/api/admin/user/list', {}, {})
    },
    UserUpdate(data: any) {
        return request.put('/api/admin/user/update', {}, data)
    },
    CreateTopic(data: any) {
        return request.put('/api/admin/topic/create', {}, data)
    },
    GetTopics() {
        return request.get('/api/admin/topic/list', {}, {})
    },
    GetInspect(data: any) {
        return request.post('/api/admin/inspect/list', {}, data);
    },
    SetInspectTotal(data: any) {
        return request.post('/api/admin/inspect/upload', {}, data);
    },
    BackInspectStatus(data: any) {
        return request.post('/api/admin/inspect/backStatus', {}, data);
    },
    SaveCode(data: any) {
        return request.post('/api/admin/inspect/savecode', {}, data);
    }
}